package com.zuoye.day01;

public class Star {
    public static void main(String[] args) {
        int row = 5;
        String s = "";
        for (int i = 1;i <= row;i++){  //行数
            for(int k = 0;k <= i-1;k++){//空格数
                s += " ";
            }
            for (int j =1;j <= 2*row-2*i+1;j++){ //*
                s += '*';
            }
            s += '\n';
        }
        System.out.println(s);
    }

}
